//禁止不必要的命名空间限定符
export enum A {
  b = 'x',
  c = A.b
}

export namespace B {
  export type C = number;
  export const x: B.C = 3;
}

namespace A {
  export type B = number;
  const x: A.B = 3;
}

namespace A {
  export namespace B {
    export type T = number;
    const x: A.B.T = 3;
  }
}

namespace A {
  export namespace B.C {
    export type D = number;
    const x: A.B.C.D = 3;
  }
}

namespace Foo {
  export enum A {
    B,
    C = Foo.A.B,
  }
}

